<?php
	require_once $ubi['SERVER']['SERVER_ROOT'] . '/dao/daoPrivacyEmail.php';
	require_once $ubi['SERVER']['SERVER_ROOT'] . '/model/privacy_email.php';
	
	class PrivacyEmailBus {
		private $_privacyEmailDao;	
	
		public function __construct() {
			$this->_privacyEmailDao = new PrivacyEmailDao();		
		}
		
		public function addPrivacyEmail($userID, $privacyID) {
			$privacy_email = new PrivacyEmailModel();
			$privacy_email->setUserID($userID);
			$privacy_email->setPrivacyID($privacyID);
			
			return $this->_privacyEmailDao->addPrivacyEmail($privacy_email);
		}		
		
		public function removePrivacyEmail($userID, $privacyID) {
			$privacy_email = new PrivacyEmailModel();
			$privacy_email->setUserID($userID);
			$privacy_email->setPrivacyID($privacyID);
			
			return $this->_privacyEmailDao->removePrivacyEmail($privacy_email);
		}
	}
?>